package ao

import (
	"context"
	pb "gitee.com/micro-services/protocol/room/api"
	"micro.room.client/integration"
)

func CreateRoom(ctx context.Context, r *pb.APICreateRoomReq) (*pb.APICreateRoomRsp, error) {
	return integration.CreateRoom(ctx, r)
}

func UpdateRoomInfo(ctx context.Context, r *pb.APIUpdateRoomInfoReq) (*pb.APIUpdateRoomInfoRsp, error) {
	return integration.UpdateRoomInfo(ctx, r)
}

func DeleteRoom(ctx context.Context, r *pb.APIDeleteRoomReq) (*pb.APIDeleteRoomRsp, error) {
	return integration.DeleteRoom(ctx, r)
}

func BatchRoomInfo(ctx context.Context, r *pb.APIBatchRoomInfoReq) (*pb.APIBatchRoomInfoRsp, error) {
	return integration.BatchRoomInfo(ctx, r)
}

func RoomList(ctx context.Context, r *pb.APIRoomListReq) (*pb.APIRoomListRsp, error) {
	return integration.RoomList(ctx, r)
}
